s=0
for i in  range(1,101):
    s+=i
print(s)

s=0
i=1
while i<=100:
    s+=i
    i+=1
print(s)
